set(kwhirlmon_SRCS watchedthreaddata.cpp
   kwhirlmon.cpp
   main.cpp
   kwhirlmonview.cpp
 )

kde4_add_ui_files(kwhirlmon_SRCS prefs_base.ui)

kde4_add_kcfg_files(kwhirlmon_SRCS settings.kcfgc )

kde4_add_executable(kwhirlmon ${kwhirlmon_SRCS})

target_link_libraries(kwhirlmon ${KDE4_KDEUI_LIBS} QtNetwork ${QJSON_LIBRARIES} ${qjson_LIBRARIES})

install(TARGETS kwhirlmon ${INSTALL_TARGETS_DEFAULT_ARGS} )

########### install files ###############

install( PROGRAMS kwhirlmon.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kwhirlmon.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
install( FILES kwhirlmonui.rc  DESTINATION  ${DATA_INSTALL_DIR}/kwhirlmon )
# install( FILES kwhirlmon.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kwhirlmon )
